﻿using System;
using System.Web.UI.Design;
using BizElements.BusinessLayer;

namespace BizElements.Web
{
    #region Documentation.
    /// <summary>
    /// Provides a user interface for selecting a XML file.
    /// </summary>
    /// <example>
    /// <code>
    /// [Category("Behavior")]
    /// [Editor(typeof(XmlUrlEditor), typeof(UITypeEditor))]
    /// [Description("URL of the XML file which is read by CommandHierarchy.")]
    /// public virtual string CommandHierarchySrc
    /// {
    ///     get { return this.commandHierarchySrc; }
    ///     set { this.commandHierarchySrc = value; }
    /// }
    /// </code>
    /// </example>
    #endregion
    internal class XmlUrlEditor : UrlEditor
    {
        #region Specify file filter.

        protected override string Filter
        {
            get { return "XML Documents|*.xml|All Files|*.*"; }
        }

        #endregion
    }
}
